Other Structs

The following structs are available globally.

  • Struct to hold on to strings.

    See more

    Declaration

    Swift

    public struct FHIRString: FHIRPrimitive, CustomStringConvertible, ExpressibleByStringLiteral
  • A date for use in human communication. Named FHIRDate to avoid the numerous collisions with Foundation.Date.

    Month and day are optional and there are no timezones.

    See more

    Declaration

    Swift

    public struct FHIRDate: DateAndTime
  • A time during the day, optionally with seconds, usually for human communication. Named FHIRTime to match with FHIRDate.

    Minimum of 00:00 and maximum of < 24:00. There is no timezone. Since decimal precision has significance in FHIR, Time initialized from a string will remember the seconds string until it is manually set.

    See more

    Declaration

    Swift

    public struct FHIRTime: DateAndTime
  • A date, optionally with time, as used in human communication.

    If a time is specified there must be a timezone; defaults to the system reported local timezone.

    See more

    Declaration

    Swift

    public struct DateTime: DateAndTime
  • An instant in time, known at least to the second and with a timezone, for machine times.

    See more

    Declaration

    Swift

    public struct Instant: DateAndTime
  • Struct to hold on to a 32-bit integer value.

    See more

    Declaration

    Swift

    public struct FHIRInteger: FHIRPrimitive, LosslessStringConvertible, ExpressibleByStringLiteral, ExpressibleByIntegerLiteral
  • Struct to hold on to a decimal value.

    By design, FHIRDecimal does not conform to ExpressibleByFloatLiteral in order to avoid precision issues.

    See more

    Declaration

    Swift

    public struct FHIRDecimal: FHIRPrimitive, LosslessStringConvertible, ExpressibleByStringLiteral, ExpressibleByIntegerLiteral
  • Errors thrown during serialization and deserialization.

    See more

    Declaration

    Swift

    public struct FHIRValidationError: Error, CustomStringConvertible
  • Struct to hold request headers. By default, the Accept-Charset header is set to utf-8 upon initialization.

    See more

    Declaration

    Swift

    public struct FHIRRequestHeaders
  • Parameters to pass along when making a request.

    See more

    Declaration

    Swift

    public struct FHIRRequestParameters
  • Options to pass along to request handlers.

    See more

    Declaration

    Swift

    public struct FHIRRequestOption: OptionSet
  • Struct to hold on to a boolean value.

    See more

    Declaration

    Swift

    public struct FHIRBool: FHIRPrimitive, LosslessStringConvertible, ExpressibleByBooleanLiteral